-- GENERATED SPELL FOR [Scarshield Raider] --


function spell0_9258(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(14030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9258', 6500, 1)
end

function spell1_9258(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9258', 589, 1)
end

function Sorts_9258(pUnit, Event)
local choix_sorts_9258 = math.random(0, 1)
if choix_sorts_9258 == 0 then
pUnit:RegisterEvent('spell0_9258', 1, 1)
end
if choix_sorts_9258 == 1 then
pUnit:RegisterEvent('spell1_9258', 1, 1)
end
end

function mob9258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9258', math.random(1500, 3000), 1)
end

function mob9258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9258, 1, 'mob9258_Action')
RegisterUnitEvent(9258, 2, 'mob9258_Leave')
RegisterUnitEvent(9258, 3, 'mob9258_Kill')
RegisterUnitEvent(9258, 4, 'mob9258_Die')
